package com.example.demo.controller;

import com.example.demo.impl.CommdityServiceImpl;
import com.example.demo.impl.EvaluateImpl;
import com.example.demo.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Evaluate")
public class EvaluateController {
    @Autowired
    EvaluateImpl evaluate;

    @GetMapping("/getevaluate")
    public Object findevaluate(int commodityid)
    {
        return evaluate.getevaluatelist(commodityid);
    }
}
